package com.demo.phonerepair.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.phonerepair.pojo.Parts;
import com.demo.phonerepair.util.Result;

import java.util.Map;

public interface PartsService extends IService<Parts> {
    Map<String, Object> list(int userId, String searchKeyword, Integer pageNum,
                             Integer pagesize, String sortField, String sortOrder);

    Result<String> addPart(Parts parts);

    Result<String> updatePart(Parts parts);
    Result<String> deletePart(Integer partId);
}
